﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class STowerCopy2PassMsg extends IMessageBase
    {
        public var playerId:int;
        public var level:int;
        public var copyCode:int;
        public var passTime:Date;
        public const _type:int = 131;
        public static var _regist:STowerCopy2PassMsg = new STowerCopy2PassMsg(true);

        public function STowerCopy2PassMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new STowerCopy2PassMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.playerId);
            param1.writeInt(this.level);
            param1.writeInt(this.copyCode);
            param1.writeDate(this.passTime);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.playerId = param1.readInt();
            this.level = param1.readInt();
            this.copyCode = param1.readInt();
            this.passTime = param1.readDate();
            return;
        }// end function

    }
}
